
var electron = require('electron')
var ipc = electron.ipcMain
var app = electron.app
var BrowserWindow = electron.BrowserWindow
var mainWindow = null
app.on('ready',()=>{
    mainWindow = new BrowserWindow({
        width:1280,
        height:720,
        frame: false,
        webPreferences:{nodeIntegration:true,nodeIntegration:true}
    })
    require('./js/ui.js')
    mainWindow.loadFile('index.html')
    mainWindow.on('closed',()=>{
        mainWindow = null
    })
    ipc.on('window-close',function(){
    mainWindow.close();
})
})


